import { request, post } from '../utils/request';
import { routerRedux } from 'dva/router';

export async function login(userNameOrEmailAddress, password) {
    var input = {
        userNameOrEmailAddress: userNameOrEmailAddress,
        password: password,
        rememberClient: true
    };
    return post('/api/TokenAuth/Authenticate', {
        body: JSON.stringify(input)
    })
}